package app.r_teenus.backend.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "SUBJECT_TYPE")
public class SubjectType implements Serializable {

	private static final long serialVersionUID = -5732454347966585012L;
	private Integer id;
	private String typeName;

	public SubjectType(int i, String string) {
		id = i;
		typeName = string;
	}

	public SubjectType() {
		
	}

	/**
	 * Gets id (primary key).
	 */
	@Id
	@Column(name = "SUBJECT_TYPE")
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "TYPE_NAME")
	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
}
